package com.huazheng.miaosha.web.constant;

/**
 * @author: zhanghzi
 * @Email: zhanghzi@dcits.com
 * @Date: 2021/1/23 20:42
 * Description: TODO
 */
public enum  ErrorEnum {
    STOCK_ZERO("商品已卖完"),
    UPDATE_STOCK_FAIL("更新库存失败"),
    CREATE_ORDER_FAIL("创建订单失败"),
    REQUEST_OVER("请求超过阈值了");

    private String msg;

    private ErrorEnum(String msg){
        this.msg=msg;
    }

    @Override
    public String toString() {
        return super.toString();
    }
}
